Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

private_endpoints_service: wait for all regions #221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carloruiz
Copy link
Contributor

Previously, when waiting for private endpoints service creation, the resource could be considered ready if a single resource was ready and others were not yet created. This commit fixes the bug by explicitly waiting for all regional services to be AVAILABLE.

Commit checklist

  • Changelog
  • Doc gen (make generate)
  • Integration test(s)
  • Acceptance test(s)
  • Example(s)

Previously, when waiting for private endpoints service creation, the
resource could be considered ready if a single resource was ready and
others were not yet created. This commit fixes the bug by explicitly
waiting for all regional services to be AVAILABLE.
@carloruiz carloruiz requested a review from fantapop July 2, 2024 19:05
Copy link
Collaborator

@fantapop fantapop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one minor variable naming nit that I think would improve readability. Thanks for working on this. Nice test as well. It was clear and thorough.

}
) (*client.PrivateEndpointServices, *retry.RetryError) {
// Set of all regions.
regions := func() map[string]bool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think renaming this could help code readability later in this function

Suggested change
regions := func() map[string]bool {
pendingClusterRegions := func() map[string]bool {

@fantapop
Copy link
Collaborator

also It looks like the doc generation action is failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants